<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/Public/Assets/Hui/lib/html5.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/lib/respond.min.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/lib/PIE_IE678.js"></script>
<![endif]-->
<link href="/Public/Assets/Hui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/Public/Assets/Hui/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/Public/Assets/Hui/lib/validator/jquery.validator.css" rel="stylesheet" type="text/css" />
<link href="/Public/Assets/Hui/lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
<link href="/Public/Assets/Miniweb/lib/datepicker/dist/datepicker.min.css" rel="stylesheet" type="text/css" />
<link href="/Public/Assets/Hui/css/pagecss.css?v=1.0.0" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/Public/Assets/Hui/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
<link rel="stylesheet" type="text/css" href="/Public/Assets/Miniweb/lib/treeTable/treeTable.css" />
<link href="/Public/Assets/Hui/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="/Public/Assets/Hui/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>Administator管理后台</title>


</head>
<body>

<div class="pd-20">
	<form action="<?php echo u('Catsadmin/edit_post');?>" method="post" class="form form-horizontal validator_form" id="form-user-add">
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>父节点：</label>
			<div class="formControls col-6">
				<select name="parentid" class="input-text" style="width:auto;">
					<option value="0">根节点</option>
					<?php echo ($select_categorys); ?>
				</select>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>分类名称：</label>
				<div class="formControls col-5">
				  	<input type="text" class="input-text" value="<?php echo ($info["cat_name"]); ?>" placeholder="" name="cat_name"  data-rule="分类名称:required;">
				</div>
			<div class="col-5"> </div>
		</div>
	  	<div class="row cl">
			<label class="form-label col-2">备注：</label>
			<div class="formControls col-5">
	  			<textarea name="cat_desc" cols="" rows="" class="textarea"  placeholder="说点什么...最少输入10个字符" onKeyUp="textarealength(this,100)"><?php echo ($info["cat_desc"]); ?></textarea>
			</div>
			<div class="col-5"> </div>
	  	</div>
	  	<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>排序：</label>
			<div class="formControls col-4">
				<input type="text" class="input-text" value="<?php echo ((isset($info["listorder"]) && ($info["listorder"] !== ""))?($info["listorder"]):0); ?>" placeholder="" name="listorder" data-rule="排序值:required;">
			</div>
		</div>
	  	<div class="row cl">
	    	<div class="col-9 col-offset-2">
	    		<input type="hidden" name="id" value="<?php echo ($info['id']); ?>">
	    		<?php if($info['group_id']): ?><input type="hidden" name="group_id" value="<?php echo ($info['group_id']); ?>">
	    		<?php else: ?>
	    		<input type="hidden" name="group_id" value="<?php echo ($_SESSION['cur_select_group']); ?>"><?php endif; ?>
	      		<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
	    	</div>
	  	</div>
	</form>
</div>


<script type="text/javascript" src="/Public/Assets/Hui/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/lib/validator/jquery.validator.js"></script> 
<script type="text/javascript" src="/Public/Assets/Hui/lib/validator/local/zh_CN.js"></script> 
<script type="text/javascript" src="/Public/Sea/modules/layer/2.1/layer/layer.js"></script>
<script type="text/javascript" src="/Public/Assets/Miniweb/lib/datepicker/dist/datepicker.min.js"></script>
<script type="text/javascript" src="/Public/Assets/Miniweb/lib/datepicker/i18n/datepicker.zh-CN.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script> 
<script type="text/javascript" src="/Public/Assets/Miniweb/lib/treeTable/treeTable.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/js/H-ui.js"></script> 
<script type="text/javascript" src="/Public/Assets/Hui/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="/Public/Assets/Hui/lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="/Public/Assets/Miniweb/mini-admin.js"></script> 



<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$("#form-user-add").Validform({
		tiptype:2,
		callback:function(form){
			form[0].submit();
			var index = parent.layer.getFrameIndex(window.name);
			parent.$('.btn-refresh').click();
			parent.layer.close(index);
		}
	});

});
parent.shuaxin_nodes();
</script>

</body>
</html>